using System;
using System.Collections.Generic;

namespace UnityEngine.Recorder.Input
{
	public class CBRenderTextureInputSettings : ImageInputSettings
	{
		public EImageSource source = EImageSource.ActiveCameras;

		public string m_CameraTag;

		public bool m_FlipFinalOutput;

		public bool m_AllowTransparency;

		public bool m_CaptureUI;

		public override Type inputType => typeof(CBRenderTextureInput);

		public override bool ValidityCheck(List<string> errors)
		{
			bool result = base.ValidityCheck(errors);
			if (source == EImageSource.TaggedCamera && string.IsNullOrEmpty(m_CameraTag))
			{
				result = false;
				errors.Add("Missing tag for camera selection");
			}
			return result;
		}
	}
}
